#include <iostream>
#include "memento.h"

int main()
{
    Originator *o = new Originator();
    o->SetState("1");

    Mementor *m = o->CreateMementor();

    o->SetState("2");
    o->PrintInfo();

    o->RestoreMemento(m);
    o->PrintInfo();

    delete o;
    return 0;
}

